package stack_quene.stack.stack;

import stack_quene.stack.stack.Stack;

public class StackTest {
    public static void main(String[] args) {
        Stack<Integer> stack=new Stack<>();
        stack.push(1);
        stack.push(2);
        stack.push(4);
        //[1,2,4]
        System.out.println(stack);
        //[4]
        System.out.println(stack.peek());
        //[1,2]
        stack.pop();
        System.out.println(stack);
    }

}
